home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
009a
/
isadriv.zip
/
ISADRIVE.DOC
< prev
Wrap
Text File
|
1991-08-30
|
4KB
|
90 lines
IsADrive.COM documentation.
Purpose:
IsADrive will validate a drive letter for you. It will tell you whether
the specified drive exists and is ready or not.
Options:
/S Silent Mode: no visible/audible error messages
/T No-Title mode: suppress the copywrite message
/N No change: verify the drive, but don't change to it.
/- Hide a drive
/+ Un-Hide a drive
/? Help
/P Report on number of physical disk drives installed
/P# Set up system to believe in # physical drives.
Usage:
ISADRIVE <letter> {options}
> Example: ISADRIVE F
will try to change to drive F:. If F: is not ready or does not exist,
the change will be cancelled and you will be left on the drive you
started from.
NOTE: this is different from DOS. DOS would:
1 - force you to respond to "Abort, Retry, Ignore"
2 - leave you on "Current drive is no longer valid"
Isadrive simply tells you about the problem, both on-screen and through
an errorcode, and returns to the last valid drive.
Results:
If the change was successful:
Errorlevel=0, No message to screen.
If the drive exists but was not ready (say, a diskette drive without
a formatted disk, or an unopened Diskreet or Squish disk):
Errorlevel=1, message="That drive was not ready - change cancelled."
(This is the only error message accompanied by a beep.)
If the drive does not exist, but the lastdrive option is such that it
is availible for allocation (i.e. a LASTDRIVE= statement in CONFIG.SYS
or it is at or below E: on a system with few drives):
Errorlevel=2, message="Change failed - Invalid drive inside
LASTDRIVE range."
If the drive does not exist and is outside of the lastdrive range:
Errorlevel=2, message="That drive letter is out of range."
> ISADRIVE E /-
will hide drive E:. Trying to change to drive E: after this command
will result in the "Invalid Drive Specification" message. This can
be returned to normal with the command "ISADRIVE E /+".
> ISADRIVE /P0
sets the system to zero physical drives. (NOTE: SCSI systems have
no physical drives anyhow - just devices.)
> ISADRIVE /P1
turns off hard disk #2.
IMPORTANT NOTES:
The /S and /T will work with both the drive checking and the drive
toggling commands.
You can turn on any drive with-in your LASTDRIVE specification, but
if it is not REALLY a drive, you will lock up when you try to change
to it.
Sometimes some operating systems will reset the number of physical
disk drives after ISADRIVE has. ISADRIVE can not control the
operating systems, and has no way of preventing this. It does set
it properly, but may not be able to keep it that way.
If you have set a physical drive off, but it still looks like it is
on, the reason may be a disk cache. Try loading a file you have not
touched in a while or reading a directory you had not yet accessed, or
do a CHKDSK.
There is a bug in ISADRIVE - if you are changing to a drive while
using the /P parameter in any of its permutations, if the drive you
are changing to is not ready, you will not recieve an error. The
error level will be set, and you will be left on the start drive,
but no error will be reported to the screen.
Toggling a drive does not change to or from that drive. The two are
considered separate operations.